import request from "@/utils/request";

// 查询医师授权列表
export function listPhysicianPrescriptionAuth(query) {
  return request({
    url: "/zp/physician/prescriptionAuth/list",
    method: "get",
    params: query,
  });
}

// 新增医师授权
export function addPhysicianPrescriptionAuth(data) {
  return request({
    url: "/zp/physician/prescriptionAuth",
    method: "post",
    data: data,
  });
}

// 删除医师授权
export function delPhysicianPrescriptionAuth(id) {
  return request({
    url: "/zp/physician/prescriptionAuth/" + id,
    method: "delete",
  });
}
